package com.gitee.swsk33.dbfeign.feignclient;

import com.gitee.swsk33.dbentity.dataobject.Order;
import com.gitee.swsk33.dbentity.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "db-order", path = "/api/order", contextId = "order-client")
public interface OrderClient {

	@PostMapping("/get-batch")
	Result<List<Order>> getByBatchId(@RequestBody List<Integer> ids);

}